<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>

    <script type="text/javascript" th:src="@{/bootstrap-3.3.7-dist/js/bootstrap.js}"></script>

    <script type="text/javascript" th:src="@{/bootstrap-3.3.7-dist/css/bootstrap.css}"></script>

    <script type="text/javascript" th:src="@{/js/jquery-1.12.4.min.js}"></script>

    <script type="text/javascript" th:src="@{/js/jquery.md5.js}"></script>
</head>
<body>

<div>

    <div>秒杀商品列表</div>

    <table class="table" id="goodsList">

        <tr>
            <td>商品名称</td>
            <td>商品图片</td>
            <td>商品原价</td>
            <td>商品秒杀价</td>
            <td>库存数量</td>
            <td>详情</td>
        </tr>

        <tr th:each="goods,goodStatus: ${goodsList}">
            <td th:text="${goods.goodsName}"></td>
            <td> <img th:src="@{${goods.goodsImg}}" width="100" height="100"/></td>
            <td th:text="${goods.goodsPrice}"></td>
            <td th:text="${goods.miaoshaPrice}"></td>
            <td th:text="${goods.stockCount}"></td>
<!--            <td><a th:href="'/goods/to_detail/' + ${goods.id}" >详情</a></td>-->

            <!-- 跳到static下面的good_detail.htm页面中-->
            <td><a th:href="'/goods_detail.htm?goodsId=' + ${goods.id}" >详情</a></td>
        </tr>

    </table>
</div>








</body>
</html>